import Moke from 'mockjs'

Moke.mock('/test', 'get', {
  code: 200,
  message: '操作成功',
  data: [
    {
      path: '/user',
      component: 'Layout',
      meta: {
        title: '用户信息',
        icon: 'menu',
        hidden: true,
        roles: ['ROOT']
      },
      keepAlive: true,
      children: [
        {
          path: 'kun',
          component: 'demo/kun',
          name: 'kun',
          meta: { title: '用户信息', icon: '', hidden: false, roles: ['ROOT'] },
          keepAlive: true
        }
      ]
    }
  ]
})

Moke.mock('/addmode', 'get', {
  code: 200,
  message: '操作成功',
  data: [
    {
      path: '/reader',
      component: 'Layout',
      meta: {
        title: '箭头模型',
        icon: 'menu',
        hidden: false,
        roles: ['ROOT']
      },
      keepAlive: true,
      children: [
        {
          path: '/reader',
          component: 'reader/index',
          name: 'Arrow',
          meta: { title: '箭头模型', icon: 'link', hidden: false, roles: ['ROOT'] },
          keepAlive: true
        }
      ]
    },
    {
      path: '/user',
      component: 'Layout',
      meta: {
        title: '用户信息',
        icon: 'menu',
        hidden: true,
        roles: ['ROOT']
      },
      keepAlive: true,
      children: [
        {
          path: 'kun',
          component: 'demo/kun',
          name: 'kun',
          meta: { title: '用户信息', icon: '', hidden: false, roles: ['ROOT'] },
          keepAlive: true
        }
      ]
    }
  ]
})
